Generating Application IDs Automatically
ODBC client applications can turn on automatic application ID generation in any of the following ways:
- Specifying the automatic application ID method in the ODBC connection string that is passed to SQLDriverConnect. For example:
....;AutomaticApplicationID=
x;where
xis set to one of the following values:
- When set to 1, the full path of the application executable is used as input for the hash function.
- When set to 2, the executable binary file is used as input for the hash function.
- When set to 3, both the full path of the application executable and the executable binary file are used as input for the hash function.
- When set to 4, the full directory name of the application executable is used as input for the hash function.
- Specifying SQLSetConnectAttr. Immediately after each call to SQLConnect or SQLDriverConnect connecting to the ODBC Client, call SQLSetConnectAttr as shown:
SQLSetConnectAttr(hdbc, 1054,
x, SQL_IS_INTEGER)where
xis one of the following values:
- When set to 1, the full path of the application executable is used as input for the hash function.
- When set to 2, the executable binary file is used as input for the hash function.
- When set to 3, both the full path of the application executable and the executable binary file are used as input for the hash function.
- When set to 4, the full directory name of the application executable is used as input for the hash function.